const jwt = require("express-jwt");
const {PEIVATE_KEY}=require("./config")
module.exports = jwt({
    secret:PEIVATE_KEY,
    algorithms:["HS256"],
    credentialsRequired:true
}).unless({
    path:[
        '/',
        '/web/gethelplist',
        '/web/gethelpcontent',
        '/web/getarticlelist',
        '/web/getarticlecontent',
        '/web/getcompanylist',
        '/web/getcompanycontent',
        '/web/getjoblist',
        '/web/getjobcontent',
        '/web/getcommentlist',
        '/web/getreplylist',
        '/web/getactivitylist',
        '/web/getactivitycontent',
        '/web/getoldstufflist',
        '/web/getoldstuffcontent',
        '/web/search',
        '/uploads',
        '/webadmin/registered',
        '/webadmin/login',
        '/webadmin/createreport',
        '/webadmin/getreportcontent',
        '/webadmin/createappeal',
        '/admin/login',
        '/admin/contentexamine',
        '/admin/carousellist',
        '/admin/lablelist',
        '/admin/announcementlist'
    ]
})
